﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace LabelPrintSystem
{
    public class ClsPackInfo
    {//包装info
        void CreatTable()
        {
            //           CREATE TABLE [dbo].[tb_PackRecord](
            //     [ID] [int] IDENTITY(1,1) NOT NULL,
            //     [RetrospectSN] [nvarchar](50)  NULL,--追溯条码
            //     [ProductSN] [nvarchar](50) NOT NULL,--天线条码
            //     [OutsideBSN] [nvarchar](50) NOT NULL,--外箱条码
            //     [OutsideCSN] [nvarchar](50) NOT NULL,--外罩条码	
            //     [ProductTypeID] [nvarchar](50) NOT NULL,--产品类型 
            //     [PackageTime] [datetime] NOT NULL,--包装时间
            //     [PackageUser] [nvarchar](50) NOT NULL,--包装人员
            //     [PCIP] [nvarchar](50) NOT NULL,--PC  ip地址
            //     [Remark] [nvarchar](50) NULL--备注，预留
            //) ON [PRIMARY]

            //GO 
        }
        public int ID { get; set; }
        public string RetrospectSN { get; set; }
        public string ProductSN { get; set; }
        public string OutsideBSN { get; set; }
        public string OutsideCSN { get; set; }
        public string ProductTypeID { get; set; }
        public DateTime PackageTime { set; get; }
        public string PackageUser { set; get; }
        public string PCIP { set; get; }
        public string Remark { set; get; }
        /*新增2018/7/10*/
        public string TBC { set; get; }
        public string BTBC { set; get; }
        public string OCSN1 { set; get; }
        public string OCSN2 { set; get; }
        public string OCSN3 { set; get; }
        public string ALDSN { set; get; }
        /*新增2018/7/10*/
        public ClsPackInfo()
        {
            this.ID = 0;
            this.Remark = "";
            this.TBC = "";
            this.BTBC = "";
            this.OCSN1 = "";
            this.OCSN2 = "";
            this.OCSN3 = "";
            this.ALDSN = "";
        }
    }

    public class ClsRelevanceInfo
    {//关联INFO
        void CreateTable()
        {
            //            CREATE TABLE [dbo].[tb_Relevance](
            //     [ID] [int] IDENTITY(1,1) NOT NULL,
            //     [RetrospectSN] [nvarchar](50)  NULL,--追溯条码
            //     [ProductSN] [nvarchar](50) NOT NULL,--天线条码 
            //     [RelevanceTime] [datetime] NOT NULL,--关联时间
            //     [RelevanceUser] [nvarchar](50) NOT NULL,--关联人 
            //     [PCIP] [nvarchar](50) NOT NULL,--PC  ip地址
            //     [Remark] [nvarchar](50) NULL--备注，预留
            //) ON [PRIMARY]

            //GO
        }
        public int ID { get; set; }
        public string RetrospectSN { get; set; }
        public string ProductSN { get; set; }
        public DateTime RelevanceTime { set; get; }
        public string RelevanceUser { get; set; }
        public string PCIP { set; get; }
        public string Remark { set; get; }
        public ClsRelevanceInfo()
        {
            this.ID = 0;
            this.Remark = "";
        }

    }

    public class ClsTProductTypeInfo //: IComparer<ClsTProductTypeInfo>
    {//产品类型表
        public const string ProductTypeIDName = "ProductTypeID";
        public enum emReviewCode { IsReviewCode = 1, IsNotReviewCode = 0 }
        public string ProductTypeID { get; set; }
        public string ProductTypeName { get; set; }
        public string ProductTypeSerialID { get; set; }
        public int? ProductTypeIsZTE { get; set; }
        public int? IsReviewCode { get; set; }
        public ClsTProductTypeInfo()
        {
            ProductTypeID = "TDA0100164";
            ProductTypeName = "MBMF-65-15DE-TDD-IN";
            ProductTypeSerialID = "AAU天线";
            ProductTypeIsZTE = 0;
            IsReviewCode = 1;
        }
        ////Compare函数
        //public int Compare(ClsTProductTypeInfo x, ClsTProductTypeInfo y)
        //{
        //    return x.ProductTypeID.CompareTo(y.ProductTypeID);//升序
        //}
        //public override string ToString()
        //{
        //    return "";
        //}
    }

    public class ClsPackConfigInfo
    {
        public int ID { get; set; }
        public string ProductTypeID { get; set; }
        public bool RSN { get; set; }
        public bool PSN { get; set; }
        public bool OBSN { get; set; }
        public bool OCSN { get; set; }
        public bool TBC { get; set; }
        public bool BTBC { get; set; }
        public bool OCSN1 { get; set; }
        public bool OCSN2 { get; set; }
        public bool OCSN3 { get; set; }
        public bool ALDSN { get; set; }
        public int PCodeRule { get; set; }
        public string PCodeRuleRemark { get; set; }       
    }

}
